package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.ProvinceMapper;
import com.ruoyi.merchant.domain.Province;
import com.ruoyi.merchant.service.IProvinceService;

/**
 * provinceService业务层处理
 * 
 * @author chengxin.ju
 * @date 2023-12-12
 */
@Service
public class ProvinceServiceImpl implements IProvinceService 
{
    @Autowired
    private ProvinceMapper provinceMapper;

    /**
     * 查询province
     * 
     * @param id province主键
     * @return province
     */
    @Override
    public Province selectProvinceById(Long id)
    {
        return provinceMapper.selectProvinceById(id);
    }

    /**
     * 查询province列表
     * 
     * @param province province
     * @return province
     */
    @Override
    public List<Province> selectProvinceList(Province province)
    {
        return provinceMapper.selectProvinceList(province);
    }

    /**
     * 新增province
     * 
     * @param province province
     * @return 结果
     */
    @Override
    public int insertProvince(Province province)
    {
        return provinceMapper.insertProvince(province);
    }

    /**
     * 修改province
     * 
     * @param province province
     * @return 结果
     */
    @Override
    public int updateProvince(Province province)
    {
        return provinceMapper.updateProvince(province);
    }

    /**
     * 批量删除province
     * 
     * @param ids 需要删除的province主键
     * @return 结果
     */
    @Override
    public int deleteProvinceByIds(Long[] ids)
    {
        return provinceMapper.deleteProvinceByIds(ids);
    }

    /**
     * 删除province信息
     * 
     * @param id province主键
     * @return 结果
     */
    @Override
    public int deleteProvinceById(Long id)
    {
        return provinceMapper.deleteProvinceById(id);
    }
}
